package com.interview.communication;

import org.junit.Test;

/**
 * wait/notify 方式的单元测试
 */
public class WaitNotifyExampleTest {

    @Test
    public void testWaitNotifyDemo() throws InterruptedException {
        // 测试wait/notify示例是否能正常运行
        System.out.println("===== wait/notify 测试开始 =====");
        long startTime = System.currentTimeMillis();
        
        WaitNotifyExample.demo();
        
        long endTime = System.currentTimeMillis();
        System.out.println("===== wait/notify 测试完成，耗时: " + (endTime - startTime) + "ms =====\n");
    }
}
